import {request} from "@/utils/request.js";

export async function uploadphoto(data) {
    return request({
      method: 'POST',
      url: '/communite/uploadphoto',
      data,
    })
}
export async function deletephoto(file_id) {
    return request({
      method: 'POST',
      url: `/communite/deleteFile/{file_id}`,
    })
}
export async function send_post(data) {
    return request({
      method: 'POST',
      url: '/communite/create',
      data,
    });
}
export async function delete_post(post_id) {
    return request({
      method: 'POST',
      url: `/communite/deletep/{post_id}`,
      data,
    })
}

export async function send_comment(data) {
    return request({
      method: 'POST',
      url: '/communite/comment',
      data,
    })
}
export async function delete_comment(data) {
    return request({
      method: 'POST',
      url: '/communite/deletec',
      data,
    })
}
